package ch5;

import java.util.Scanner;

public class Zuoye7 {//输出1-1000内能被7整除的数
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int i = 1;
        double b = 0;
        while (i <= 10) {
            System.out.print("请输入第" + i + "个数");
            double a = input.nextDouble();
            b = b + a;
            i++;
        }
        System.out.println(b);
    }
}
